﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NetMicro.Core.ApiFunction
{
  
    /// <summary>
    /// 管理端上下文
    /// </summary>
    public class AdminContext
    {

        /// <summary>
        /// 租户Id
        /// </summary>
        public long TenantId { get; set; }

        /// <summary>
        /// 账号
        /// </summary>
        public string AccountId { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 登录名
        /// </summary>
        public string LoginName { get; set; }

    }

    /// <summary>
    /// 客户端上下文
    /// </summary>
    public class WebContext
    {

        /// <summary>
        /// 租户Id
        /// </summary>
        public long TenantId { get; set; }

        /// <summary>
        /// 活动Id
        /// </summary>
        public long ActivityId { get; set; }

        #region 活动主公众号
        /// <summary>
        /// 用户中心 用户标识号
        /// </summary>
        public string UserId { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        public string Mobile { get; set; }

        /// <summary>
        /// 活动设置的主公众号 OpenId
        /// </summary>
        public string OpenId { get; set; }

        #endregion

        /// <summary>
        /// 其他公众号用户信息
        /// </summary>
        public List<UserOtherAuthInfoResponse> UserInfoList { get; set; }
    }

    /// <summary>
    /// 用户其他公众号授权信息
    /// </summary>
    public class UserOtherAuthInfoResponse
    {
        /// <summary>
        /// 活动设置的主公众号 OpenId
        /// </summary>
        public string OpenId { get; set; }

        /// <summary>
        /// 当前公众号标识号
        /// </summary>
        public long OfficeAccountId { get; set; }

        /// <summary>
        /// 只有在用户将公众号绑定到微信开放平台帐号后，才会出现该字段。
        /// </summary>
        public string UnionId { get; set; }

    }
}
